package com.example.vehicle.Entity;

/**
 * @name: VehicleUser
 * @description: 用户类。
 * @author: Lulu Zhao
 **/
public class VehicleUser {
    String clientID;
    String initPassword;
    String hashedPassword;
    int currentHashTimes;
    String location;

    /**
     * @name: VehicleUser
     * @description: 无参构造函数。
     * @params: []
     * @return:
     * @author: Lulu Zhao
     */
    public VehicleUser() {
    }

    /**
     * @name: VehicleUser
     * @description: 有参构造函数。
     * @params: [clientID, initPassword, hashedPassword, currentHashTimes, location]
     * @return:
     * @author: Lulu Zhao
     */
    public VehicleUser(String clientID, String initPassword, String hashedPassword, int currentHashTimes, String location) {
        this.clientID = clientID;
        this.initPassword = initPassword;
        this.hashedPassword = hashedPassword;
        this.currentHashTimes = currentHashTimes;
        this.location = location;
    }

    /**
     * @name: getClientID
     * @description: 获取车辆ID。
     * @params: []
     * @return: java.lang.String
     * @author: Lulu Zhao
     */
    public String getClientID() {
        return clientID;
    }

    /**
     * @name: setClientID
     * @description: 设置车辆ID。
     * @params: [clientID]
     * @return: void
     * @author: Lulu Zhao
     */
    public void setClientID(String clientID) {
        this.clientID = clientID;
    }

    /**
     * @name: getInitPassword
     * @description: 获取初始口令。
     * @params: []
     * @return: java.lang.String
     * @author: Lulu Zhao
     */
    public String getInitPassword() {
        return initPassword;
    }

    /**
     * @name: setInitPassword
     * @description: 设置初始口令。
     * @params: [initPassword]
     * @return: void
     * @author: Lulu Zhao
     */
    public void setInitPassword(String initPassword) {
        this.initPassword = initPassword;
    }

    /**
     * @name: getHashedPassword
     * @description: 获取哈希后口令。
     * @params: []
     * @return: java.lang.String
     * @author: Lulu Zhao
     */
    public String getHashedPassword() {
        return hashedPassword;
    }

    /**
     * @name: setHashedPassword
     * @description: 设置哈希后口令。
     * @params: [hashedPassword]
     * @return: void
     * @author: Lulu Zhao
     */
    public void setHashedPassword(String hashedPassword) {
        this.hashedPassword = hashedPassword;
    }

    /**
     * @name: getCurrentHashTimes
     * @description: 获取当前哈希次数。
     * @params: []
     * @return: int
     * @author: Lulu Zhao
     */
    public int getCurrentHashTimes() {
        return currentHashTimes;
    }

    /**
     * @name: setCurrentHashTimes
     * @description: 设置当前哈希次数。
     * @params: [currentHashTimes]
     * @return: void
     * @author: Lulu Zhao
     */
    public void setCurrentHashTimes(int currentHashTimes) {
        this.currentHashTimes = currentHashTimes;
    }

    /**
     * @name: getLocation
     * @description: 获取车辆位置。
     * @params: []
     * @return: java.lang.String
     * @author: Lulu Zhao
     */
    public String getLocation() {
        return location;
    }

    /**
     * @name: setLocation
     * @description: 设置车辆位置。
     * @params: [location]
     * @return: void
     * @author: Lulu Zhao
     */
    public void setLocation(String location) {
        this.location = location;
    }

    /**
     * @name: toString
     * @description: toString方法。
     * @params: []
     * @return: java.lang.String
     * @author: Lulu Zhao
     */
    @Override
    public String toString() {
        return "VehicleUser{" +
                "clientID='" + clientID + '\'' +
                ", initPassword='" + initPassword + '\'' +
                ", hashedPassword='" + hashedPassword + '\'' +
                ", currentHashTimes=" + currentHashTimes +
                ", location='" + location + '\'' +
                '}';
    }
}
